package com.ny.service.impl;

import com.ny.dao.ManagerDao;
import com.ny.dao.impl.ManagerDaoImpl;
import com.ny.entity.Manager;

import java.sql.SQLException;

public class ManagerServiceImpl {
    private ManagerDao managerDao = new ManagerDaoImpl() {
        @Override
        public Manager getAdminByCredentials(String adminName, String adminPassword) {
            return null;
        }
    };
    public ManagerServiceImpl() throws SQLException, ClassNotFoundException {
    }


    public Manager getAdminByCredentials(String adminName, String adminPassword) throws SQLException
    {

        return managerDao.getAdminByCredentials(adminName, adminPassword);
    }



    public void add(Manager manager) throws SQLException, ClassNotFoundException {
        managerDao.add(manager);
    }

}
